/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TwitterData.java
 *
 * Created on 11.11.2009, 21:52:11
 */

package twitt;

import org.jdesktop.application.Action;

/**
 *
 * @version 0.0.1.14581
 * @author Sad_hamster
 */
public class TwitterData extends javax.swing.JDialog {

    /** Creates new form TwitterData */
    public TwitterData(java.awt.Frame parent, boolean modal, String message, String messageOwner) {
        super(parent, modal);
        initComponents();
        jlMessageOwner.setText(messageOwner);
        jtMessageBox.setText(message);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    CopyLinck = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jtMessageBox = new javax.swing.JTextArea();
    jlMessageOwner = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setName("Form"); // NOI18N

    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(twitt.TwittApp.class).getContext().getResourceMap(TwitterData.class);
    CopyLinck.setText(resourceMap.getString("CopyLinck.text")); // NOI18N
    CopyLinck.setName("CopyLinck"); // NOI18N

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(twitt.TwittApp.class).getContext().getActionMap(TwitterData.class, this);
    jButton2.setAction(actionMap.get("qute")); // NOI18N
    jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
    jButton2.setName("jButton2"); // NOI18N

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jtMessageBox.setColumns(20);
    jtMessageBox.setFont(resourceMap.getFont("jtMessageBox.font")); // NOI18N
    jtMessageBox.setLineWrap(true);
    jtMessageBox.setRows(5);
    jtMessageBox.setName("jtMessageBox"); // NOI18N
    jScrollPane1.setViewportView(jtMessageBox);

    jlMessageOwner.setText(resourceMap.getString("jlMessageOwner.text")); // NOI18N
    jlMessageOwner.setName("jlMessageOwner"); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(layout.createSequentialGroup()
        .addContainerGap()
        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          .addGroup(layout.createSequentialGroup()
            .addComponent(CopyLinck)
            .addGap(18, 18, 18)
            .addComponent(jButton2))
          .addComponent(jlMessageOwner))
        .addContainerGap(246, Short.MAX_VALUE))
      .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE)
    );
    layout.setVerticalGroup(
      layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
        .addGap(11, 11, 11)
        .addComponent(jlMessageOwner)
        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)
        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
          .addComponent(CopyLinck)
          .addComponent(jButton2)))
    );

    pack();
  }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                TwitterData dialog = new TwitterData(new javax.swing.JFrame(), true, "", "");
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

  @Action
  public void qute() {
    dispose();
  }

  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JButton CopyLinck;
  private javax.swing.JButton jButton2;
  private javax.swing.JScrollPane jScrollPane1;
  private javax.swing.JLabel jlMessageOwner;
  private javax.swing.JTextArea jtMessageBox;
  // End of variables declaration//GEN-END:variables

}
